package love.yuanmengrobot.guoyitang.controller;

/*
 *   @Studio:CHJY · 源梦科技
 *   @Author:lzl
 *   @Ide:IntelliJ IDEA
 *   @Creation time:2021/8/13 22:16
 */

import love.yuanmengrobot.guoyitang.entity.TbNatmehaMedRecords;
import love.yuanmengrobot.guoyitang.service.MedRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class MedicineRecordController {

    @Autowired
    private MedRecordService medRecordService;

    @RequestMapping("findMedRecords")
    public List<TbNatmehaMedRecords> findMedRecords(String idCardNo){
        //获取用户相关的医疗记录
        return medRecordService.findMedRecordsByCardNo(idCardNo);
    }

}
